package com.easy.activiti.listener;

import com.easy.activiti.ext.TaskEvent;
import org.activiti.engine.delegate.event.ActivitiEvent;

/**
 * @author zhouchuang
 * 2024-11-05 17:12:31
 */
public class ProcessStartedListener extends AEventHandler{
    @Override
    public void handle(ActivitiEvent event) {
        System.out.println("===========ProcessStarted=============");
        TaskEvent taskEvent = dispatchEvent(event);
        getActuator(taskEvent.getProcessDefinitionKey()+"processStarted").execute(taskEvent);
    }
}
